package com.design;

/**
 * 审批者抽象类
 */
public abstract class Approve {
    /**
     * 下一个审批人
     */
    protected Approve nextApprove;

    /**
     * 设置下一个审批人
     */
    protected void setNextApprove(Approve nextApprove) {
        this.nextApprove = nextApprove;
    }

    /**
     * 审批方法
     */
    public abstract void approve(Leave leave);
}
